package com.youku.component.notification;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.youku.component.report.TestReport;

/**
 * 短信通知
 * 
 * @author loda
 *
 */
public class MessageNotification implements Notification {

	private static final Logger logger = LoggerFactory.getLogger(MessageNotification.class);

	@Override
	public void notice(TestReport testReport, List<Recipient> recipients) {
		String text = testReport.simpleDisplay();
		logger.info("通过短信发送报告");
		for(Recipient r:recipients){
			logger.debug("给"+r.getCellNumber()+"发送了短信"+text);
		}
	}

}
